import request from '@/utils/request'

// 查询核算价列表
export function listCheckoutprice(query) {
  return request({
    url: '/settlementCenter/basedata/checkoutprice/list',
    method: 'get',
    params: query
  })
}

// 查询核算价详细
export function getCheckoutprice(id) {
  return request({
    url: '/settlementCenter/basedata/checkoutprice/' + id,
    method: 'get'
  })
}

// 新增核算价
export function addCheckoutprice(data) {
  return request({
    url: '/settlementCenter/basedata/checkoutprice',
    method: 'post',
    data: data
  })
}

// 修改核算价
export function updateCheckoutprice(data) {
  return request({
    url: '/settlementCenter/basedata/checkoutprice',
    method: 'put',
    data: data
  })
}

// 删除核算价
export function delCheckoutprice(id) {
  return request({
    url: '/settlementCenter/basedata/checkoutprice/' + id,
    method: 'delete'
  })
}
